/*
 * File:   segment.h
 * Author: gustavo
 *
 * Created on August 21, 2011, 6:11 PM
 */

#ifndef SEGMENT_H
#define	SEGMENT_H

#ifdef	__cplusplus
extern "C" {
#endif

#include "../object/object.h"

#include "vertex.h"
//
//
//	ImpSegment * imp_segment_new(ImpVertex * v1, ImpVertex * v2);
//	void imp_segment_set(ImpSegment * s, ImpVertex * v1, ImpVertex * v2);
//	ImpSegmentClass * imp_segment_get_class(void);
//	real imp_segment_length2(ImpSegment * s);
//	real imp_segment_length(ImpSegment * s);
//	real imp_segment_compare_min_y(ImpSegment * s1, ImpSegment * s2);
//
//#define imp_segment_have_vertex( s, vv ) ( (s)->v[0] == (vv) || (s)->v[1] == (vv) )
//
//#define imp_segment_are_connected( s1, s2 )	( (s1)->v[0] == (s2)->v[0] || (s1)->v[0] == (s2)->v[1] || (s1)->v[1] == (s2)->v[0] || (s1)->v[1] == (s2)->v[1] )

//#define imp_segment_connect(_s, _v1, _v2)	( ((_s)->v[0] == _v1 && (_s)->v[1] == _v2) || ((_s)->v[0] == _v2 && (_s)->v[1] == _v1) )



#ifdef	__cplusplus
}
#endif

#endif	/* SEGMENT_H */

